package cn.liumouren.tool.pac.entity.rely;

/**
 * @author Daniel Liu
 * @date 2021/3/1 23:23
 */
public class Page {
    /**
     * 默认当前页数为1
     */
    private int cur = 1;
    /**
     * 默认每页显示条数为10
     */
    private int size = 10;
    /**
     * 默认在分页查询时不查询记录数
     */
    private boolean searchCount = false;
    /**
     * 默认不是查询所有
     */
    private boolean findAll = false;

    public boolean isSearchCount() {
        return searchCount;
    }

    public void setSearchCount(boolean searchCount) {
        this.searchCount = searchCount;
    }

    public boolean isFindAll() {
        return findAll;
    }

    public void setFindAll(boolean findAll) {
        this.findAll = findAll;
    }

    public int getCur() {
        return cur;
    }

    public void setCur(int cur) {
        if (cur > 0) {
            this.cur = cur;
        }
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        if (size > 0) {
            this.size = size;
        }
    }
}
